package com.education.user.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "auth-service")
@Service
public interface AuthClient {

    @RequestMapping(value = "/getToken",method = RequestMethod.GET)
    public String getToken(@RequestParam(value = "userId", required = false) Integer userId);
}
